import defaultSettings from '~/setting'

export const useSettingsStore = defineStore('setting', {
  state: () => ({
    // 主题：light-亮色(默认) dark-暗色
    theme: useStorage<string>('theme', defaultSettings.theme),
    // 是否开启水印
    watermarkEnabled: useStorage<boolean>(
      'watermarkEnabled',
      defaultSettings.watermarkEnabled,
    ),
  }),
})
